cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 11)
#set(OpenCV_DIR /usr/local/opencv-4.0.0/lib/cmake/opencv4/)
IF (APPLE)
find_package(OpenCV 3 REQUIRED)
ELSEIF (UNIX)
set(OpenCV_DIR /usr/local/opencv-4.0.0/lib/cmake/opencv4/)
find_package(OpenCV  REQUIRED)
ENDIF ()
include_directories(
    /usr/local/include
)
link_directories(
    /usr/local/lib
)
add_executable(fusion main.cpp)
target_link_libraries(fusion  ${OpenCV_LIBS} pthread)
install(TARGETS fusion DESTINATION bin)
